package com.baizhi.enumeration;

/**
 * 表示季节的类，每一个季节包括：季节名称，季节特点，季节月份，季节温度，季节降雨量
 * 季节包含四个季节对象： 春季，夏季，秋季，冬季
 *
 * 引用数据类型, 就是基本数据类型的组合
 */
public class Season {
    //季节名称和特征
    private String name;
    private String desc;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }


    public Season(){}

    public Season(String name,String desc){
        name = this.name;
        desc = this.desc;
    }

    //具体的季节对象
   public static final Season 春季 = new Spring("春天","暖和");
   public static final Season 夏季 = new Summer("夏天","炎热");
    public  static final Season 秋季  = new Autumn("秋天","凉爽");
   public  static final  Season 冬季 = new Winter("冬天","寒冷");



}
